package tp3;

public class Cercle extends FigureOrdonnable implements Ordonnable <FigureOrdonnable>{
	
	protected double rayon;
			
	Cercle(){
		
		super();
		
		this.rayon = -1;
	}
	
	Cercle(double rayon){
		
		super();
		
		this.rayon = rayon;
	}
	
	public double calculerAire (){
		
		return Math.sqrt(this.rayon)*Math.PI;
		
	}
	
	public boolean estPlusGrand (FigureOrdonnable f){
						
		return this.calculerAire() > f.calculerAire();
		
	}

}
